﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"> GM列表 </div>
        <div class="weui-panel__bd">
            {% for user in users %}
            <a href="{% url 'gma:gm_detail' user.user_id %}" class="weui-media-box weui-media-box_appmsg">
                <div class="weui-media-box__hd">
                    <img class="weui-media-box__thumb avatar" src="{{ user.avatar|cdn }}" alt="">
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">{{ user.nickname }}</h4>
                    <p class="weui-media-box__desc">{{ user.city }}</p>
                </div>

                <div class="weui-cell__ft" style="font-size: 0">
                    <span style="vertical-align:middle; font-size: 17px;"> {{ user.level }}级 </span>
                    {% if user.level > 1 %}
                    <i class="weui-icon-success"></i>
                    {% else %}
                    <i class="weui-icon-warn"></i>
                    {% endif %}
                </div>
            </a>
            {% endfor %}

            <div class="weui-media-box weui-media-box_text">
                <ul class="weui-media-box__info">
                    <li class="weui-media-box__info__meta"> 共有 {{ total_count }} 名GM </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="weui-btn-area">
    <a class="weui-btn weui-btn_block weui-btn_primary" href="{% url 'gma:gm_qrcode' username %}"> 邀请GM </a>
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
{% endblock extra_js %}